package com.ruoyi.system.service.impl;


import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.mapper.TaosMapper;
import com.ruoyi.system.service.ITaosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TaosServiceImpl implements ITaosService {

    @Autowired
    private TaosMapper taosMapper;


    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public int count() {
        return taosMapper.count();
    }
}
